from rest_framework import serializers
from tools.models import Photo

class PhotoSerializer(serializers.ModelSerializer): 
    title = serializers.CharField(max_length=64)
    location = serializers.CharField(max_length=255)
    class Meta:
        model = Photo
        fields = '__all__'
